<form name="form1" id="form1" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="biplustech@gmail.com">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="item_name" value="Course Payment">
    <input type="hidden" name="amount" value="<?=intval($_REQUEST['fees'])?>">
    <INPUT TYPE="hidden" NAME="return" value="http://localhost/elearning/thankyou.php">
</form>
<script>
document.form1.submit();
</script>